package com.movitech.mobile.cz.base.sessionuser;

import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service("sessionUserService")
public class SessionUserServiceImpl implements SessionUserService {

	@Override
	public SessionUserVo getSessionUser() {
//		Gson gson = new Gson();
//		ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
//		HttpServletRequest request = requestAttributes.getRequest();
//		HttpSession session = request.getSession();
//		Object userJson = session.getAttribute("userJson");
//		if (userJson != null) {
//			userVo = gson.fromJson(userJson.toString(), new TypeToken<SessionUserVo>(){}.getType());
//		}
		return null;
	}

	@Override
	public SessionUserVo getSessionUserByToken(HttpServletRequest request) {
		return null;
	}

}
